<template>
  <div>
    =================================
    <van-grid :column-num="4">
      <van-grid-item
        v-for="(item, index) in xiaoming"
        :key="index"
        :icon="item.img1"
        :text="item.brand"
        @click="onclick(item.proid)"
      >
      </van-grid-item>
    </van-grid>
  </div>
</template>

<script>
import Vue from "vue";
import { Grid, GridItem } from "vant";

Vue.use(Grid);
Vue.use(GridItem);

export default {
  props: ["xiaoming"],
  methods: {
    onclick(proid) {
      this.$router.push("/detail/" + proid);
    },
  },
};
</script>

<style>
</style>